﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true" ResponseEncoding="utf-8"
    CodeFile="Default.aspx.cs" Inherits="Pages_MdLongLa_Default" %>
<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar" runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlCity"></asp:AsyncPostBackTrigger>
        </Triggers>
        <ContentTemplate>
            <asp:DropDownList ID="ddlCity" runat="server" Field="City" Width="100px" AutoPostBack="True"
                OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="ddlDistrict" runat="server" Width="100px" Field="County">
            </asp:DropDownList>
        </ContentTemplate>
    </asp:UpdatePanel>
   
   
    模糊查询
    <asp:TextBox runat="server" ID="txtAll" Field="Longitude,Latitude"
        Opt="%" ToolTip="经度,纬度">
    </asp:TextBox>
    每页显示
    <asp:TextBox runat="server" ID="txtPageSize" Text="20" Width="50"> </asp:TextBox>

</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server" >
        <Columns>
		<asp:TemplateField  ItemStyle-Width="50">
            <HeaderTemplate>
                <input id="cbhALL" type="checkbox" onclick="SelectAll('gvInfos', this, 'cbItem');" /><label
                    for="cbhALL"></label>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="cbItem" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>	
		<asp:BoundField DataField="City" SortExpression="City" HeaderText="市"    />		
		<asp:BoundField DataField="County" SortExpression="County" HeaderText="县（区"   />		
		<asp:BoundField DataField="NAME" SortExpression="NAME" HeaderText="村（街道、单位）"   />		
		<asp:BoundField DataField="Longitude" SortExpression="Longitude" HeaderText="经度" />		
		<asp:BoundField DataField="Latitude" SortExpression="Latitude" HeaderText="纬度" />	
        <asp:CommandField ShowEditButton="true" EditText="编辑" HeaderText="编辑" ItemStyle-Width="80" />		
        <asp:TemplateField HeaderText="删除" ItemStyle-Width="50">
        <ItemTemplate>
        <asp:LinkButton ID="lbDelete" Text="删除" CausesValidation="true" CommandName="Delete"
                    OnClientClick="return confirm('确定删除吗？');" runat="server">
        </asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="ManageEditURI"
            ItemStyle-Width="50" />			
        </Columns>
    </asp:GridView>
</asp:Content>
